module.exports = function (app) {
    return new Handler(app);
};
var Handler = function (app) {
    this.app = app;
};
var handler = Handler.prototype;

const {
    videoMarkExistsAction
} = require('../lib/action');

const utils = require('../../../util/utils');

/**
 * 用户日常任务邀请奖励次数增加
 * @param uid
 * @param frontendId
 * @param cb
 * @returns {Promise<void>}
 */
handler.userVideoExistsRemote = async function (uid, frontendId, cb) {
    let self = this;

    try {
        let ret = await videoMarkExistsAction.call(self, uid);
        utils.invokeCallback(cb, null, ret);
    } catch (err) {
        console.error('userVideoExistsRemote err 1: ' + err);
        utils.invokeCallback(cb, err, null);
    }
};